package com.cnpinxi.service;

import com.cnpinxi.domain.Commission;
import com.cnpinxi.domain.ManagerCommission;
import com.cnpinxi.domain.Order;

import java.util.List;
import java.util.Map;

/**
 * Created by Baggio on 2017-12-21.
 */
public interface CommissionService {

    int insertCommission(Commission record);
    int updateCommissionById(Commission record);

    List<Commission> selectCommissionList(Map<String, String> map);
    Commission selectCommissionById(Long tid);

    void commission(Order order);
    void payCommission(Long tid);
    Map<String,Object>  selectCommissionSum(Map<String, String> parameter);
    List<ManagerCommission>  managerCommissionList(Map<String, String> parameter);

    void modifyManagerCommission(ManagerCommission managerCommission);
    List<ManagerCommission> selectManagerCommissionList(Map<String, String> map);
}
